/*
 * Field.java
 *
 * Created on June 17, 2004, 11:49 AM
 */
package com.spi.soconversion.base;

/**
 * An exception class for XML marshalling
 * 
 * @author  XSPID41
 */
public class MarshallingException extends Exception {
    
    protected String context = null;
    
    public MarshallingException() {
        this(null, null, null);
    }

    public MarshallingException(String msg) {
        this(msg, null, null);
    }

    public MarshallingException(String msg, String context) {
        this(msg, null, context);
    }

    public MarshallingException(Throwable cause) {
        this(null, cause, null);
    }

    public MarshallingException(Throwable cause, String context) {
        this(context, cause, context);
    }

    public MarshallingException(String msg, Throwable cause, String context) {
        super(msg, cause);
        this.context = context;
    }
    
    public String getXPathExpression() {
        return context;
    }
}